package com.elias.share.utils;

import java.nio.file.Path;
import java.util.concurrent.ArrayBlockingQueue;

public class FileDeleteQueueUtil {
    private FileDeleteQueueUtil() {
    }

    private static final ArrayBlockingQueue<Path> DELETE_QUEUE = new ArrayBlockingQueue<>(500000);

    public static void offer(Path path) {
        DELETE_QUEUE.offer(path);
    }

    public static Path take() throws InterruptedException {
        return DELETE_QUEUE.take();
    }
}
